inherited FrelatorioInventarioApontamento: TFrelatorioInventarioApontamento
  Left = 192
  Top = 151
  Width = 1026
  Height = 695
  Caption = 'ESTOQUE /  INVENT'#193'RIO'
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 16
  inherited Panel1: TPanel
    Width = 1018
    inherited lbResultado: TStaticText
      Left = 124
      Top = 7
    end
  end
  inherited Panel2: TPanel
    Width = 1018
    Caption = ' RELAT'#211'RIO DE APONTAMENTO'
  end
  inherited GroupBox1: TGroupBox
    Top = 63
    object Label3: TLabel
      Left = 16
      Top = 24
      Width = 102
      Height = 16
      Caption = 'Grupo do Produto'
    end
    object Label53: TLabel
      Left = 16
      Top = 79
      Width = 171
      Height = 16
      Caption = 'Classifica'#231#227'o do Produto (F8)'
    end
    object DBLCBGrupoProduto: TDBLookupComboBox
      Left = 16
      Top = 41
      Width = 281
      Height = 22
      Ctl3D = False
      KeyField = 'GRUP_PROD_CODIGO'
      ListField = 'GRUP_PROD_DESCRICAO'
      ListSource = DSGrupoProduto
      ParentCtl3D = False
      TabOrder = 0
      OnKeyDown = DBLCBGrupoProdutoKeyDown
    end
    object dblClassProduto: TDBLookupComboBox
      Left = 16
      Top = 98
      Width = 281
      Height = 22
      Ctl3D = False
      KeyField = 'ESTRUTURA'
      ListField = 'CLASS_PROD_DESCRICAO'
      ListSource = dsClassProduto
      ParentCtl3D = False
      TabOrder = 1
      OnKeyDown = dblClassProdutoKeyDown
    end
    object GroupBox3: TGroupBox
      Left = 16
      Top = 128
      Width = 204
      Height = 65
      Caption = '  Localiza'#231#227'o  '
      TabOrder = 2
      object Label5: TLabel
        Left = 90
        Top = 26
        Width = 7
        Height = 16
        Caption = 'a'
      end
      object edLocalizacao1: TMaskEdit
        Left = 8
        Top = 26
        Width = 70
        Height = 22
        TabOrder = 0
      end
      object edLocalizacao2: TMaskEdit
        Left = 110
        Top = 26
        Width = 78
        Height = 22
        TabOrder = 1
      end
    end
    object GroupBox4: TGroupBox
      Left = 16
      Top = 259
      Width = 160
      Height = 55
      Caption = ' Mercado na Rede '
      TabOrder = 3
      object cbMRSim: TCheckBox
        Left = 8
        Top = 24
        Width = 57
        Height = 17
        Caption = 'Sim'
        TabOrder = 0
      end
      object cbMRNao: TCheckBox
        Left = 96
        Top = 24
        Width = 49
        Height = 17
        Caption = 'N'#227'o'
        TabOrder = 1
      end
    end
    object GroupBox5: TGroupBox
      Left = 16
      Top = 198
      Width = 160
      Height = 55
      Caption = ' Situa'#231#227'o '
      TabOrder = 4
      object CbSitAtivo: TCheckBox
        Left = 8
        Top = 24
        Width = 57
        Height = 17
        Caption = 'Ativos'
        TabOrder = 0
      end
      object CbSitInativo: TCheckBox
        Left = 80
        Top = 24
        Width = 73
        Height = 17
        Caption = 'Inativos'
        TabOrder = 1
      end
    end
    object GroupBox6: TGroupBox
      Left = 233
      Top = 129
      Width = 264
      Height = 120
      Caption = '  Data  Apontamento'
      Ctl3D = False
      ParentCtl3D = False
      TabOrder = 5
      object Label6: TLabel
        Left = 10
        Top = 53
        Width = 248
        Height = 48
        Alignment = taCenter
        Caption = 
          'Informando essa data, ser'#227'o selecionados '#13#10'os itens com diferen'#231 +
          'a de quantidade.'#13#10'Estoque X Apontamento.'
      end
      object DTAPONTAMENTO: TDateEdit
        Left = 11
        Top = 22
        Width = 121
        Height = 21
        Ctl3D = False
        NumGlyphs = 2
        ParentCtl3D = False
        TabOrder = 0
      end
    end
  end
  inherited GroupBox2: TGroupBox
    Top = 63
    object Label4: TLabel [3]
      Left = 8
      Top = 63
      Width = 91
      Height = 16
      Caption = 'Estoque / Local'
    end
    object RgOrdenar: TRadioGroup
      Left = 8
      Top = 112
      Width = 273
      Height = 57
      Caption = '  Ordenar  '
      Columns = 3
      ItemIndex = 0
      Items.Strings = (
        'C'#243'digo'
        'Descri'#231#227'o'
        'Localiza'#231#227'o')
      TabOrder = 5
    end
    object DBLCBLocal: TDBLookupComboBox
      Left = 8
      Top = 82
      Width = 257
      Height = 22
      Ctl3D = False
      KeyField = 'LOC_CODIGO'
      ListField = 'LOC_DESCRICAO'
      ListSource = DSLocal
      ParentCtl3D = False
      TabOrder = 6
      OnKeyDown = DBLCBLocalKeyDown
    end
    object cbExibirValor: TCheckBox
      Left = 8
      Top = 176
      Width = 161
      Height = 17
      Caption = 'Exibir Quantidade'
      TabOrder = 7
    end
  end
  inherited RLReport: TRLReport
    Left = 16
    Top = 421
    DataSource = DSPesquisa
    object RLBand2: TRLBand
      Left = 38
      Top = 120
      Width = 718
      Height = 24
      BandType = btColumnHeader
      Borders.Sides = sdCustom
      Borders.DrawLeft = False
      Borders.DrawTop = False
      Borders.DrawRight = False
      Borders.DrawBottom = True
      Borders.FixedBottom = True
      object RLLabel2: TRLLabel
        Left = 4
        Top = 3
        Width = 49
        Height = 16
        Caption = 'C'#243'digo'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel1: TRLLabel
        Left = 81
        Top = 3
        Width = 66
        Height = 16
        Caption = 'Descri'#231#227'o'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel4: TRLLabel
        Left = 397
        Top = 3
        Width = 34
        Height = 16
        Alignment = taCenter
        AutoSize = False
        Caption = 'Unid'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel5: TRLLabel
        Left = 504
        Top = 3
        Width = 46
        Height = 16
        Alignment = taRightJustify
        Caption = 'Quant.'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel6: TRLLabel
        Left = 588
        Top = 3
        Width = 52
        Height = 16
        Alignment = taCenter
        Caption = 'Vr.Unit.'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
        BeforePrint = RLLabel6BeforePrint
      end
      object RLLabel3: TRLLabel
        Left = 57
        Top = 3
        Width = 22
        Height = 16
        Alignment = taCenter
        Caption = 'A/I'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel7: TRLLabel
        Left = 437
        Top = 3
        Width = 54
        Height = 16
        Alignment = taCenter
        Caption = 'Localiz.'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel10: TRLLabel
        Left = 644
        Top = 3
        Width = 76
        Height = 16
        Alignment = taCenter
        Caption = 'Vr.CM.Unit.'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
    end
    object RLBand3: TRLBand
      Left = 38
      Top = 144
      Width = 718
      Height = 26
      object RLDBText2: TRLDBText
        Left = 4
        Top = 5
        Width = 50
        Height = 17
        AutoSize = False
        DataField = 'PROD_CODIGO'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object RLDBText3: TRLDBText
        Left = 81
        Top = 5
        Width = 310
        Height = 17
        AutoSize = False
        DataField = 'PROD_DESCRICAOENT'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object RLDBText5: TRLDBText
        Left = 398
        Top = 5
        Width = 34
        Height = 17
        AutoSize = False
        DataField = 'PROD_UNIDSAIDA'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object RLDraw1: TRLDraw
        Left = 508
        Top = 17
        Width = 42
        Height = 10
        DrawKind = dkLine
      end
      object RLDraw2: TRLDraw
        Left = 581
        Top = 17
        Width = 57
        Height = 10
        DrawKind = dkLine
        BeforePrint = RLDraw2BeforePrint
      end
      object RLDBText4: TRLDBText
        Left = 57
        Top = 5
        Width = 22
        Height = 17
        AutoSize = False
        DataField = 'PROD_ATIVO'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
        BeforePrint = RLDBText4BeforePrint
      end
      object RLDBText6: TRLDBText
        Left = 438
        Top = 5
        Width = 62
        Height = 17
        AutoSize = False
        DataField = 'PROD_LOCALIZACAO'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object rlValorUnit: TRLDBText
        Left = 559
        Top = 5
        Width = 82
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        DataField = 'SAL_LOC_QUANTIDADEEST'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
        BeforePrint = rlValorUnitBeforePrint
      end
      object RLDBText7: TRLDBText
        Left = 646
        Top = 5
        Width = 70
        Height = 16
        Alignment = taRightJustify
        AutoSize = False
        DataField = 'SAL_EST_CUSTOMEDIOUNIT'
        DataSource = DSPesquisa
      end
    end
    object RLBand4: TRLBand
      Left = 38
      Top = 170
      Width = 718
      Height = 22
      BandType = btColumnFooter
      Borders.Sides = sdCustom
      Borders.DrawLeft = False
      Borders.DrawTop = True
      Borders.DrawRight = False
      Borders.DrawBottom = False
      BeforePrint = RLBand4BeforePrint
      object RLLabel8: TRLLabel
        Left = 4
        Top = 3
        Width = 94
        Height = 16
        Caption = 'Total de Itens:'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel9: TRLLabel
        Left = 95
        Top = 3
        Width = 56
        Height = 16
        Caption = '-------------'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
    end
  end
  inherited QPesquisa: TQuery
    SQL.Strings = (
      'SELECT DISTINCT'
      '  PRODUTO.PROD_DESCRICAOENT,'
      '  PRODUTO.PROD_UNIDSAIDA,'
      '  PRODUTO.PROD_GRUPOPRODUTO,'
      '  PRODUTO.PROD_CLASSIFPROD1,'
      '  PRODUTO.PROD_CODIGO,'
      '  PRODUTO.PROD_ATIVO,'
      '  PRODUTO.PROD_LOCALIZACAO,'
      '  SALDOESTOQUE.SAL_EST_CUSTOMEDIOUNIT,'
      '  SALDOLOCAL.SAL_LOC_QUANTIDADEEST'
      'FROM'
      '  PRODUTO'
      
        '  INNER JOIN CLASSIFICACAOPRODUTO ON (PRODUTO.PROD_CLASSIFPROD1 ' +
        '= CLASSIFICACAOPRODUTO.CLASS_PROD_CODIGO)'
      
        '  LEFT  JOIN SALDOESTOQUE ON (SALDOESTOQUE.SAL_EST_PRODUTO = PRO' +
        'DUTO.PROD_CODIGO)'
      
        '  LEFT  JOIN SALDOLOCAL ON (SALDOLOCAL.SAL_LOC_PRODUTO = PRODUTO' +
        '.PROD_CODIGO)'
      '                       AND (SAL_LOC_LOCAL = 1)'
      'WHERE'
      '  ((PRODUTO.EXCLUIDO IS NULL) OR (PRODUTO.EXCLUIDO <> '#39'S'#39')) AND'
      '  (PRODUTO.PROD_CODIGO IS NOT NULL) ')
    Left = 480
    Top = 25
    object QPesquisaPROD_DESCRICAOENT: TStringField
      FieldName = 'PROD_DESCRICAOENT'
      Origin = 'BASE.PRODUTO.PROD_DESCRICAOENT'
      Size = 60
    end
    object QPesquisaPROD_UNIDSAIDA: TStringField
      FieldName = 'PROD_UNIDSAIDA'
      Origin = 'BASE.PRODUTO.PROD_UNIDSAIDA'
      Size = 5
    end
    object QPesquisaPROD_GRUPOPRODUTO: TIntegerField
      FieldName = 'PROD_GRUPOPRODUTO'
      Origin = 'BASE.PRODUTO.PROD_GRUPOPRODUTO'
    end
    object QPesquisaPROD_CLASSIFPROD1: TIntegerField
      FieldName = 'PROD_CLASSIFPROD1'
      Origin = 'BASE.PRODUTO.PROD_CLASSIFPROD1'
    end
    object QPesquisaPROD_CODIGO: TIntegerField
      FieldName = 'PROD_CODIGO'
      Origin = 'BASE.PRODUTO.PROD_CODIGO'
    end
    object QPesquisaPROD_LOCALIZACAO: TStringField
      FieldName = 'PROD_LOCALIZACAO'
      Origin = 'BASE.PRODUTO.PROD_LOCALIZACAO'
      EditMask = '0-000-00;0;_'
      Size = 6
    end
    object QPesquisaPROD_ATIVO: TStringField
      FieldName = 'PROD_ATIVO'
      Origin = 'BASE.PRODUTO.PROD_ATIVO'
      FixedChar = True
      Size = 1
    end
    object QPesquisaSAL_LOC_QUANTIDADEEST: TFloatField
      FieldName = 'SAL_LOC_QUANTIDADEEST'
    end
    object QPesquisaSAL_EST_CUSTOMEDIOUNIT: TFloatField
      FieldName = 'SAL_EST_CUSTOMEDIOUNIT'
      DisplayFormat = '#,##0.0000'
    end
  end
  inherited DSPesquisa: TDataSource
    Left = 480
    Top = 78
  end
  object DSGrupoProduto: TDataSource
    DataSet = DMGestao.QGrupProduto
    Left = 616
    Top = 200
  end
  object dsClassProduto: TDataSource
    DataSet = DMGestao.QClassProduto
    Left = 728
    Top = 216
  end
  object DSLocal: TDataSource
    DataSet = DMGestao.QLocal
    Left = 736
    Top = 272
  end
end
